import { withPixiApp, Container } from '@inlet/react-pixi'
import React from 'react'
import PropTypes from 'prop-types'
import { Rectangle } from '../brushes'

const EditRectangleView = ({
  label,
  color,
  scale,
}) => {
  return (
    <Container>
      <Rectangle
        label={label}
        color={color}
        scale={scale}
        edit
      />
    </Container>
  )
}

EditRectangleView.propTypes = {
  scale: PropTypes.number.isRequired,
  label: PropTypes.object.isRequired,
  color: PropTypes.string.isRequired,
}

export default withPixiApp(EditRectangleView)
